home *** CD-ROM | disk | FTP | other *** search
- this.onLoadInterval = function(MC, BAR)
- {
- if(MC.getBytesTotal() < 100)
- {
- if(!this.loadInterval)
- {
- this.loadInterval = setInterval(this,"onLoadInterval",25,MC,BAR);
- }
- BAR._visible = false;
- this._visible = false;
- return undefined;
- }
- this._visible = true;
- BAR._visible = true;
- BAR._xscale = 100 / (MC.getBytesTotal() / MC.getBytesLoaded());
- if(MC.getBytesLoaded() < MC.getBytesTotal())
- {
- return undefined;
- }
- clearInterval(this.loadInterval);
- };
- this.onLoadInterval(_root.VIDEO,this.BAR);
- this.onUnload = function()
- {
- clearInterval(this.loadInterval);
- };
-